from pydantic import BaseModel
from typing import Union, Optional, List

class PostData(BaseModel):
    """
    岗位信息表对应pydantic模型
    """
    post_id: Optional[int]
    post_code: Optional[str]
    post_name: Optional[str]
    status: Optional[str]
    remark: Optional[str] = ''

    class Config:
        from_attributes = True